<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.mdkg.net/tags/role" prefix="r"%>
/**操作员管理*/
var user={
	cookieId:"user",
	//获取集合地址
	url:$path+"/mc/usershowList",
	//是否自动加载
	autoload:true,
	//选项卡头信息
	//title:"测试2",
	//详细信息页面头信息
	infoTitle:"用户信息",
	//是否显示多选
	showchecked:true,
	//功能菜单
	buttons:[
		{name:'添加', bclass:'btnadd',onpress:showInfo,params:{iframe:true, paramData:{detailTblId: 'tblDetailRole', detailModule: 'detailRole'}}},
		{separator:true},
		{name:'编辑', bclass:'btnedit',onpress:showInfo,params:{check:true, iframe:true, paramData:{detailTblId: 'tblDetailRole', detailModule: 'detailRole'}}},
		{separator:true},
		{name:'禁用', bclass:'btndel',onpress:deleteInfo, params:{url: '/mc/userdisableEntity', info: '您确定要禁用选中的用户吗？'}},
		{separator:true},
		{name:'恢复', bclass:'btnCancelDelete',onpress:deleteInfo, params:{url: '/mc/userableEntity', info: '您确定要恢复选中的用户吗？'}},
		{separator:true}
	],
	//定义显示列名称
	colModel:[
		{display:'帐号',name:'account',sortable:true,width:120},
		{display:'性别',name:'sexDesc',sortable:true,sortName:'sex',width:60},
		//{display:'超级管理员',name:'isAdminDesc',sortable:true,sortName:'isAdmin',width:80},
		{display:'创建时间',name:'createTime',sortable:true,width:120},
		{display:'禁用状态',name:'delFlagDesc',sortable:true,sortName:'delFlag',width:80}
	],
	//是否使用分页
	usepager: true,
	//默认排序属性
	sortname: "createTime",
	//默认排序规则
	sortorder: "desc",
	//每页显示记录数
	//rp: 30,
	//procmsg:'加载中, 请稍等 ...',
	//pagestat: '显示记录从{from}到{to}，总数 {total} 条',
	//是否显示收缩按钮
	showTableToggleBtn: false,
	//删除请求提交地址
	delAction:'/mc/userdelInfo',
	//自定义查询节点id
	searchDiv:'#userSearchDiv',
	//显示详细信息页面 action 提交显示地址 modulePath 显示详细信息页面地址
	showAction:'/mc/common/showInfo.jsp?action=/mc/usershowInfo&modulePath=/mc/user/admin',
	//列表双击操作 call 回调函数 params 请求附加参数
	onselect:{call:showInfo,params:{iframe:true, paramData:{detailTblId: 'tblDetailRole', detailModule: 'detailRole'}}}
	//查询后的回调函数,函数定义function(data);data为服务器端的返回
	//searchCall:searchCall,
	/*查询前的调用函数，函数定义function(grid,t,p) 
	* grid 包含列表的div对象 
	* t grid的显示table对象（jquey）
	* p 封装全局参数
	* 返回boolean类型，返回fasle中断查询，返回true执行查询
	*/
	/*,onSubmit:function(gDiv, t, p) {
		return validateDate(gDiv, false);
	}*/
};

/**会员管理*/
var member={
	cookieId:"member",
	//获取集合地址
	url:$path+"/mc/usershowMemberList",
	//是否自动加载
	autoload:true,
	//选项卡头信息
	//title:"测试2",
	//详细信息页面头信息
	infoTitle:"会员信息",
	//是否显示多选
	showchecked:true,
	//功能菜单
	buttons:[
		{name:'添加', bclass:'btnadd',onpress:showInfo,params:{iframe:true,}},
		{separator:true},
		{name:'编辑', bclass:'btnedit',onpress:showInfo,params:{check:true, iframe:true}},
		{separator:true},
		{name:'删除', bclass:'btndel',onpress:deleteInfo},
		{separator:true}
		/*{name:'禁用', bclass:'btndel',onpress:deleteInfo, params:{url: '/mc/userdisableEntity', info: '您确定要禁用选中的会员吗？'}},
		{separator:true},
		{name:'恢复', bclass:'btnCancelDelete',onpress:deleteInfo, params:{url: '/mc/userableEntity', info: '您确定要恢复选中的会员吗？'}},
		{separator:true},*/
		
	],
	//定义显示列名称
	colModel:[
		{display:'帐号',name:'accountDesc',sortable:false,width:100},
		{display:'昵称',name:'name',sortable:true,width:100},
		
		{display:'性别',name:'sexDesc',sortable:true,sortName:'sex',width:60},
		{display:'联系方式',name:'phone',sortable:true,width:100},
		{display:'创建时间',name:'createTime',sortable:true,width:120},
		
		/*{display:'来源',name:'userfromDesc',sortable:false,width:60},
		{display:'头像',name:'headPortraitTip',sortable:false,width:60},
		{display:'个性签名',name:'sign',sortable:true,width:150},
		{display:'出生日期',name:'birthday',sortable:true,width:80},
		{display:'类型',name:'identityDesc',sortable:true,sortName:'identity',width:60},
		{display:'是否VIP',name:'isVipDesc',sortable:true,sortName:'isVip',width:60},
		{display:'联系地址',name:'addressDesc',sortable:false,width:400},
		{display:'禁用状态',name:'delFlagDesc',sortable:true,sortName:'delFlag',width:60}*/
	],
	//是否使用分页
	usepager: true,
	//默认排序属性
	sortname: "createTime",
	//默认排序规则
	sortorder: "desc",
	//每页显示记录数
	//rp: 30,
	//procmsg:'加载中, 请稍等 ...',
	//pagestat: '显示记录从{from}到{to}，总数 {total} 条',
	//显示详细信息页面 action 提交显示地址 modulePath 显示详细信息页面地址
	showAction:'/mc/common/showInfo.jsp?action=/mc/usershowInfo&modulePath=/mc/user/member',
	//列表双击操作 call 回调函数 params 请求附加参数
	onselect:{call:showInfo,params:{iframe:true}},
	//是否显示收缩按钮
	showTableToggleBtn: false,
	//删除请求提交地址
	delAction:'/mc/userdelInfo',
	//自定义查询节点id
	searchDiv:'#memberSearchDiv'
};